package com.llp.view.opengl;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    private TriangleView mTriangleView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mTriangleView = findViewById(R.id.triangle_view);
    }

    @Override
    protected void onResume() {
        super.onResume();
        if (mTriangleView != null) {
            mTriangleView.onResume();
        }
    }

    @Override
    protected void onPause() {
        super.onPause();
        if (mTriangleView != null) {
            mTriangleView.onPause();
        }
    }
}
